package lab02.test37;

public class Graduate extends Student {

    public Graduate(String ID, String name, double math, double english, double computer) {
        super(ID, name, math, english, computer);
    }

    public Graduate() {

    }

    public void graduate(){
        double average = super.average(math,english,computer);

        if (average > 80){
            System.out.println("通过");
        }else {
            System.out.println("不通过");
        }
    }

    @Override
    public String toString() {
        return ID+"\t\t"+name+"\t\t"+math+"\t\t"+english+"\t\t"+computer;
    }
}
